﻿using System;
using System.Collections.Generic;
using Xoohoo.Models;
using Xoohoo.Models.InputModels;

namespace Xoohoo.Repositories
{
    public interface IPermissionRepository:IDisposable
    {
        Permission GetItem(Guid permissionID);
        Permission GetItem(string permissionName);
        List<Permission> GetList(Guid? parentID = null);
        bool Save(PermissionInput permissionInput);
        bool Remove(Guid permissionID);
        bool Move(Guid permissionID, MovingTarget target);
    }
}
